package us.mooresr.aircraftscheduling.shared.model;

import java.io.Serializable;
import java.lang.String;
import java.text.DateFormat;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.NotSaved;

public class Reservation implements Serializable {

	private static final long serialVersionUID = 1600525589524688641L;
	@Id private Long reservationId;
	private Long reservingUserId;
	// reservingUserName is not stored in the DB, but is filled in on the server side when 
	// a Reservation is retrieved
	@NotSaved String reservingUserName;
	private Long resourceId;
	private String notes;
	private Date start;
	private Date end;

	public Reservation() {
	}
	
	

	public Reservation(Long reservationId, Long reservingUserId,
			Long resourceId, String notes, Date start, Date end) {
		super();
		this.reservationId = reservationId;
		this.reservingUserId = reservingUserId;
		this.resourceId = resourceId;
		this.notes = notes;
		this.start = start;
		this.end = end;
	}



	public void setReservingUserId(Long reservingUserId) {
		this.reservingUserId = reservingUserId;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public void setEnd(Date end) {
		this.end = end;
	}
	
	

	public String getReservingUserName() {
		return reservingUserName;
	}



	public void setReservingUserName(String reservingUserName) {
		this.reservingUserName = reservingUserName;
	}

	public Long getReservingUserId() {
		return reservingUserId;
	}

	public String getNotes() {
		return notes;
	}

	public Date getStart() {
		return start;
	}

	public Date getEnd() {
		return end;
	}

	public Long getReservationId() {
		return reservationId;
	}

	public void setReservationId(Long reservationId) {
		this.reservationId = reservationId;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}
	

	
}
